//-----------------------------------------------------------------------
// <copyright file="a_ShipMethodService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ShipMethodService
    {
        #region a_ShipMethod

        public static void Createa_ShipMethod(a_ShipMethod a_ShipMethod)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                a_ShipMethodDAO.Createa_ShipMethod(a_ShipMethod);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ShipMethod(a_ShipMethod a_ShipMethod)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                a_ShipMethodDAO.Updatea_ShipMethod(a_ShipMethod);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ShipMethod(int shipMethodID)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                a_ShipMethodDAO.Deletea_ShipMethod(shipMethodID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ShipMethod Geta_ShipMethod(int shipMethodID)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                return a_ShipMethodDAO.Geta_ShipMethod(shipMethodID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ShipMethodCollection Geta_ShipMethodList(a_ShipMethodColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                return a_ShipMethodDAO.Geta_ShipMethodList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ShipMethodCollection Geta_ShipMethodList(a_ShipMethodColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ShipMethodDAO a_ShipMethodDAO = new a_ShipMethodDAO();
                return a_ShipMethodDAO.Geta_ShipMethodList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}